package co.fitstart.entity.courseware.assessment;

import com.demo2do.core.utils.Alias;

/**
 * 关节状况
 * @author haiyan_xiao
 *
 */
@Alias("jointStatus")
public enum JointStatus {
    GOOD("good", "良好"),
    
    LACKING("lacking", "不足"),
    
    AWFUL("awful", "严重受限");
    
    private String alias;
    
    private String description;
    
    private JointStatus(String alias, String description) {
        this.alias = alias;
        this.description = description;
    }
    
    /**
     * 
     * @param alias
     * @return
     */
    public static JointStatus aliasOf(String alias) {
        for(JointStatus jointStatus : JointStatus.values()) {
            if(jointStatus.getAlias().equalsIgnoreCase(alias)) {
                return jointStatus;
            }
        }
        
        return null;
    }

    /**
     * @return the alias
     */
    public String getAlias() {
        return alias;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param alias the alias to set
     */
    public void setAlias(String alias) {
        this.alias = alias;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }
}
